﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Text.RegularExpressions;

namespace ValidationUnity
{
    public class RegularValidate
    {
        public static bool IsNUmber(string p_strVaule)
        {
            if (p_strVaule == "")
            {
                return false;
            }
            else
            {
                Regex m_regex = new System.Text.RegularExpressions.Regex("^(-?[0-9]*[.]*[0-9]{0,3})$");
                return m_regex.IsMatch(p_strVaule);
            }
        }
    }
}
